﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleSocket
{
    /// <summary>
    /// Contains information about a client that connected with SimpleSocket
    /// </summary>
    public class ClientConnectedEventArgs : EventArgs
    {
        /// <summary>
        /// The DateTime that the Client connected
        /// </summary>
        public DateTime ConnectedDate { get; private set; }

        /// <summary>
        /// SimpleSocketServer that the connection happened.
        /// </summary>
        public SimpleSocketServer Server { get; private set; }

        /// <summary>
        /// SimpleSocketClient that just connected.
        /// </summary>
        public SimpleSocketClient Client { get; private set; }

        public ClientConnectedEventArgs(SimpleSocketServer server, SimpleSocketClient client)
        {
            ConnectedDate = DateTime.Now;
            Client = client;
            Server = server;
        }

    }
}
